package com.jetbrains.licenseService.util;

public class Pair<A, B> {
    public final A fst;
    public final B snd;

    public Pair(A paramA, B paramB) {
        this.fst = paramA;
        this.snd = paramB;
    }

    public boolean equals(Object paramObject) {
        if (this == paramObject) {
            return true;
        }
        if ((paramObject == null) || (getClass() != paramObject.getClass())) {
            return false;
        }
        Pair localPair = (Pair) paramObject;
        if (this.fst != null ? !this.fst.equals(localPair.fst) : localPair.fst != null) {
            return false;
        }
        if (this.snd != null ? !this.snd.equals(localPair.snd) : localPair.snd != null) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int i = this.fst != null ? this.fst.hashCode() : 0;
        i = 31 * i + (this.snd != null ? this.snd.hashCode() : 0);
        return i;
    }
}
